<template>
    <button @click="change">change</button>
    <C></C>
    {{ data }}
</template>

<script setup lang='ts'>
import C from './C.vue'
import { inject, Ref, ref } from 'vue';

let data = inject<Ref<boolean>>('flag',ref(false))

const change = () => {
    data.value = true
}

</script>

<style lang='scss' scoped>

</style>
